/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.tb_supplier.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.sys.entity.User;
import com.thinkgem.jeesite.modules.tb_areas.entity.TbAreas;

/**
 * 供货商管理Entity
 * @author LiJie
 * @version 2017-06-09
 */
public class TbSupplier extends DataEntity<TbSupplier> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 供货商名称
	private String shortName;		// 供货商简称
	private String persion;		// 联系人
	private String tell;		// 联系电话
	private String address;		// 联系地址
	public User getY() {
		return y;
	}

	public void setY(User y) {
		this.y = y;
	}

	public User getS() {
		return s;
	}

	public void setS(User s) {
		this.s = s;
	}

	private User y;
	private User s;
	public TbSupplier() {
		super();
	}

	public TbSupplier(String id){
		super(id);
	}

	@Length(min=1, max=50, message="供货商名称长度必须介于 1 和 50 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=20, message="供货商简称长度必须介于 1 和 20 之间")
	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}
	
	@Length(min=1, max=30, message="联系人长度必须介于 1 和 30 之间")
	public String getPersion() {
		return persion;
	}

	public void setPersion(String persion) {
		this.persion = persion;
	}
	
	@Length(min=1, max=11, message="联系电话长度必须介于 1 和 11 之间")
	public String getTell() {
		return tell;
	}

	public void setTell(String tell) {
		this.tell = tell;
	}
	
	@Length(min=0, max=255, message="联系地址长度必须介于 0 和 255 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
}
